import * as BABYLON from "babylonjs"; //全部引入

// 画动画路径
function getPath(xyPath, yValue) {
  let linePath = [];
  for (let i = 0; i < xyPath.length; i++) {
    const el = xyPath[i];
    linePath.push(new BABYLON.Vector3(el[0], yValue, el[1]));
  }
  return linePath;
}

export default getPath;
